#ifndef __CONTROLLER_H
#define __CONTROLLER_H
#include"typedef.h"

typedef struct __CONTROLLER
{
	bool ready;
	int mask;
	int8_t state;
	int8_t(*read)(struct __CONTROLLER*, uint16_t);
	void (*write)(struct __CONTROLLER*, uint16_t, int8_t);
	void (*SetKeyState)(struct __CONTROLLER*, DWORD wParam,bool state);
}CONTROLLER;

void ControllerInit(CONTROLLER*);

#endif /*__CONTROLLER_H*/